<%= render :partial=>"filter_tab" %>

<table class="lister">
<thead>
<tr>
<td width="5%">Rank</td>
<td width="20%">Name</td>
<td width="25%">Current Streak</td>
<td width="5%">Rank</td>
<td width="20%">Name</td>
<td width="25%">Current Streak</td>
</tr>
</thead>
<tbody>



<% @users.each_with_index do |user,index| %>
<% rank = index + 1 %>
<%= "<tr>" if (index % 2).zero? %>
<td class="boldfont" height=115px width="5%"> <%= rank  %> </td>
<td width="20%">
<p><%= fb_profile_pic user %></p>
<p><%= fb_name user %></p>
</td>
<td width="25%"> <%= user.win_percentage %></td>
<%= "</tr>" if (rank % 2).zero? %>
<% end %>

<% unless (@users.size % 2).zero? %>
<td colspan="3" width="50%"></td></tr>
<% end %>

</tbody>
</table>



<%= render :partial=>"filter" %>
